package com.tongcao.cn.executor;

import com.tongcao.cn.base.req.InnerRequest;
import com.tongcao.cn.base.rsp.TestResponse;
import com.tongcao.cn.dfire.result.Result;
import com.tongcao.cn.dfire.utils.ResultUtil;
import org.springframework.stereotype.Component;

/**
 * @Author:tongcao
 * @Date:2019/1/24 16:42
 * Description:
 */
@Component
public class InnerExecutor extends AbstractInnerExecutor<InnerRequest, TestResponse> {


    /**
     * 子类待实现的方法
     *
     * @param request
     * @return
     * @throws Exception
     */
    @Override
    protected Result<TestResponse> _execute(InnerRequest request) throws Exception {
        TestResponse response = new TestResponse();
        response.setCurTime(System.currentTimeMillis() + "");
        return ResultUtil.successResult(response);
    }
}
